import { Entity, PrimaryGeneratedColumn, Column, UpdateDateColumn, CreateDateColumn } from "typeorm";

@Entity({name:'tyk_word'})
export class AWordEntity {
    @PrimaryGeneratedColumn({ name: 'word_id' })
    wordId: number

    @Column({ name: 'word_content' })
    wordContent: string

    @Column({ name: 'word_type' ,comment:'句子类型',default:'这人生'})
    wordType: string

    @Column({ name: 'is_push', comment: '是否已经推送' ,default:false})
    isPush: Boolean

    @Column({comment:'句子出处',default:'未知'})
    provenance:string

    @CreateDateColumn({ type: 'timestamp', name: 'create_date', comment: '创建时间' })
    createDate: Date

    @UpdateDateColumn({ type: 'timestamp', name: 'update_date', comment: '更新时间' })
    updateDate: Date
}